From a3b9de49c68310f0633cac62f1ab41813975390a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 11 Jan 2011 10:30:46 +0000 Subject: [PATCH] x86-64: refine access permission check for wrmsr to MSR_FAM10H_MMIO_CONF_BASE We really don't want the mmconf window to move/disappear whenever we use is ourselves, not only when we enabled it. Signed-off-by: Jan Beulich --- xen/arch/x86/traps.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index 6e2c5c7311..75d305fa6d 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -2296,8 +2296,7 @@ static int emulate_privileged_op(struct cpu_user_regs *regs) goto fail; if ( #ifdef CONFIG_X86_64 - (pci_probe & PCI_PROBE_MMCONF) && - (pci_probe & PCI_CHECK_ENABLE_AMD_MMCONF) ? + (pci_probe & PCI_PROBE_MASK) == PCI_PROBE_MMCONF ? val != msr_content : #endif ((val ^ msr_content) & -- 2.30.2